import { request } from "../utils/request";

// export function fetchDronesList() {
//   return request({
//     url: '/api/drone/list',
//     method: 'get',
//   })
// }
export const fetchDronesByPage = (data) => {
  return request.post('/api/drone/listPage', data)
}

export const uploadDrones = (data) => {
  return request.post('/api/drone/saveBatch', data)
}

export const updateDrone = (data) => {
  return request.post('/api/drone/update',data)
}

export const deleteDrone = (id) => {
  return request.post(`/api/drone/delete/${id}`,id)
}

export const createDroneCount = (data) => {
  return request.post('/api/create', data)
}